package com.weirong.smartvault.dao;

import com.weirong.smartvault.entity.Area;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 于2017/11/29由 KFEB4 创建 .
 */

@Repository
@Qualifier("AreaRepository")
public interface AreaRepository extends JpaRepository<Area,Integer> {
    public Area getByCode(String code);

    public List<Area> findAllByParentCode(String code);
}
